package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("gulimall-cart")
public interface CartFeignService {

    /**
     * 获取当前登录用户购物车中所有被选中的购物项
     *
     * @param userId
     * @return
     */
    @GetMapping("/{userId}/getOrderItems")
    R getOrderItems(@PathVariable("userId") Long userId);
}
